package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Question UserMapper.xml
 * @Date 2022/12/4 19:02
 * @Solution
 */
@Mapper
public interface UserMapper {
    public List<UserInfo> getById(@Param("id") int id);
    public int delete(@Param("id") int id);
    //添加用户
    public int add(@Param("username") String username,@Param("password") String password,
                      @Param("photo") String photo);
    public List<UserInfo> getByName(@Param("username") String username);
}
